package com.tiancheng.trade.merchant.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tiancheng.trade.commom.web.model.OrgBusinessDTO;
import com.tiancheng.trade.merchant.model.OrgBusiness;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessReqVO;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessResVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrgBusinessMapper extends MYBaseMapper<OrgBusiness> {

    List<OrgBusinessDTO> getByClientId(@Param("clientId") String clientId, @Param("termNo") String termNo);

    IPage<QueryOrgBusinessResVO> queryPage(IPage<OrgBusiness> page,
                                      @Param("c") QueryOrgBusinessReqVO conditions);

    List<QueryOrgBusinessResVO> queryList(@Param("c") QueryOrgBusinessReqVO conditions);
}
